import config from '../config/index.js'

const TOKEN_KEY = config.authInfo.TOKEN_KEY

export const getToken = () => {
  const token = localStorage.getItem(TOKEN_KEY)
  if (token) return token
  return ''
}

export const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token)
}
